home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 November
/
Chip_2003-11_cd1.bin
/
servis
/
tarylynn
/
tarylynn.exe
/
{app}
/
Help
/
Tarylynn.chm
/
common
/
src
/
default.js
next >
Wrap
Text File
|
2003-06-15
|
1KB
|
37 lines
NS4 = (document.layers) ? true : false;
MOZ = ((document.getElementById) && !(document.all)) ? true : false;
// <
MSIE4 = ((document.all) && (parseInt(navigator.appVersion) >= 4)) ? true : false;
// image swapping
bub = new cimg("common/i/b-bub.gif", "common/i/b-bub2.gif", "");
tri = new cimg("common/i/b-tri.gif", "common/i/b-tri2.gif", "Back to the top");
home = new cimg("common/i/b-arrow_l.gif", "common/i/b-arrow_l2.gif", "Back home");
contents = new cimg("common/i/b-tri.gif", "common/i/b-tri2.gif", "Down to contents");
function cimg(offsrc, onsrc, alt)
{
this.off = new Image();
this.off.src = offsrc;
this.on = new Image();
this.on.src = onsrc;
this.alt = alt;
}
function TOn(curobj, type)
{
folder = (MOZ == true) ? curobj.firstChild : document.all[curobj.sourceIndex + 1];
folder.src = eval(type).on.src;
window.status = eval(type).alt;
}
function TOff(curobj, type)
{
folder = (MOZ == true) ? curobj.firstChild : document.all[curobj.sourceIndex + 1];
folder.src = eval(type).off.src;
window.status = eval(type).alt;
}